import {request} from "../../request";


export function getCodeById(id){
    return request({
        url:`/lswms/code/${id}`,
        // url:'/demo/warehouse/page',
        method:'get'
    })
}


export function getCodeList(data){
    return request({
        url:'/lswms/code/page',
        method:'put',
        data:data
    })
}

export function putCode(data){
    return request({
        url:'/lswms/code',
        method:'put',
        data:data
    })
}
export function postCode(data){
    return request({
        url:'/lswms/code',
        method:'post',
        data:data
    })
}

export function deleteCode(data){
    return request({
        url:`/lswms/code`,
        method:'delete',
        data:data
    })
}
export function exportCode(data){
    return request({
        url:`/lswms/code/export`,
        method:'get',
        data:data,
        responseType:'blob'
    })
}
